package com.study.goal.service;

import com.baomidou.mybatisplus.annotation.TableId;
import com.study.common.core.domain.PageQuery;
import com.study.common.core.page.TableDataInfo;
import com.study.goal.domain.bo.GoalAssignmentBo;
import com.study.goal.domain.vo.GoalAssignmentVo;

/**
 *
 */
public interface GoalAssignmentService {

    /**
     * 查询目标派发列表
     *
     * @param bo
     * @param pageQuery
     * @return
     */
    TableDataInfo<GoalAssignmentVo> queryPageList(GoalAssignmentBo bo, PageQuery pageQuery);

    /**
     * 查询指定用户目标派发列表
     *
     * @param userId
     * @param pageQuery
     * @return
     */
//    TableDataInfo<GoalAssignmentVo> queryPageListById(Long guardianId, Long studentId, PageQuery pageQuery);

    /**
     * 新增目标派发
     *
     * @param bo
     * @return
     */
    Boolean insertByBo(GoalAssignmentBo bo, boolean cascade);

    /**
     * 修改目标派发
     *
     * @param bo
     * @return
     */
    Boolean updateByBo(GoalAssignmentBo bo);

    /**
     * 删除目标派发
     *
     * @param id
     * @return
     */
    Boolean deleteWithValidByIds(Long id, Boolean isValid);
}
